import { ChatContext } from '@/app/chat-context';
import { useContext } from 'react';
import { useRouter } from 'next/router';
import './corner.css'

const PageCornerLogo = () => {
  const { pathname } = useRouter();
  const { mode } = useContext(ChatContext);
  // 版权声明、右下角logo
  return (
    <>
      <div className={`absolute bottom-1 right-[46%] text-right text-xs text-gray-500 z-50`}>©2025 Norinaviation</div>

      {pathname !== '/chat' && <div className={`${mode ==='dark'?'corner':'corner-dark'} z-50`}></div>}
    </>
  );
};

export default PageCornerLogo;